You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Applied explicit content security rules across the frontend, admin panel, and maintenance page, controlling permitted sources for content, connections, and form submissions.
The rules also restrict framing and block embedded objects where configured.
Removed the report-only security policy header; the frontend’s configured content restrictions now apply directly.
No actionable comments were generated in the recent review.
Walkthrough
The frontend, admin panel, and maintenance-mode Vercel configurations now specify Content-Security-Policy directives. The frontend configuration no longer includes a Content-Security-Policy-Report-Only header.
Changes
Content-Security-Policy
Layer / File(s)
Summary
Set CSP headers across applications apps/frontend/vercel.json, apps/admin-panel/vercel.json, apps/maintenance-mode/vercel.json
The configurations define CSP source directives and restrictions. The admin panel allows connections to listed Baergpt API hosts. The frontend removes its report-only header.
This change turns on enforced Content Security Policy headers for the frontend, admin panel and maintenance page. No concrete resource that the policies would block was found in the repository. Before release, confirm that the deployed Supabase and API URLs for the admin panel match the allowed connection hosts.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "feat: enforce csp" matches the main change. The PR adds and enforces Content-Security-Policy headers in the vercel.json files of the frontend, admin-panel, and maintenance-mode apps. The ti…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "feat: enforce csp" matches the main change. The PR adds and enforces Content-Security-Policy headers in the vercel.json files of the frontend, admin-panel, and maintenance-mode apps. The title is short and specific. It uses a conventional commit prefix. It does not name the apps, but it does not need to cover every detail.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit checks the headers with care, New source rules are set there. Frontend drops report-only, Admin lists API hosts only. Maintenance keeps framing denied, Then hops through the fields with pride.
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 734751e5-694c-4ad8-9a40-477bcd49e777
Commits
Reviewing files that changed from the base of the PR and between 954ccb8 and 98607a4.
Files selected for processing: 2
apps/admin-panel/vercel.json
apps/maintenance-mode/vercel.json
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by CodeRabbit